package com.dongnam.quanly.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dongnam.quanly.common.model.enumtype.GioiTinh;
import com.dongnam.quanly.common.model.enumtype.LoaiDoiTac;
import com.dongnam.quanly.common.model.enumtype.TuCachPhapNhan;

@Entity
@Table(name = "DoiTac")
public class DoiTac extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "MaDoiTac", length = 100)
	private String maDoiTac;

	@Column(name = "TenDoiTac", length = 200, nullable = false)
	private String tenDoiTac;

	@Column(name = "MaNhomDoiTac")
	private String nhomDoiTac;

	@Column(name = "LoaiDoiTac")
	@Enumerated(EnumType.STRING)
	private LoaiDoiTac loaiDoiTac;

	@Column(name = "DiaChi", length = 200)
	private String diaChi;

	@Column(name = "MaSoThue", length = 100)
	private String maSoThue;

	@Column(name = "MaNganSach", length = 100)
	private String maNganSach;

	@Column(name = "DienThoai", length = 100)
	private String dienThoai;

	@Column(name = "Fax", length = 100)
	private String fax;

	@Column(name = "Email", length = 100)
	private String email;

	@Column(name = "Website", length = 100)
	private String website;

	@Column(name = "DienGiai", length = 200)
	private String dienGiai;

	@Column(name = "SoNoToiDa")
	private Double soNoToiDa;

	@Column(name = "hanNo")
	private Double hanNo;

	@Column(name = "TuCachPhapNhan")
	@Enumerated(EnumType.STRING)
	private TuCachPhapNhan tuCachPhapNhan;

	@Column(name = "NLH_HoTen", length = 100)
	private String hoTen;

	@Column(name = "NLH_GioiTinh", length = 100)
	@Enumerated(EnumType.STRING)
	private GioiTinh gioiTinh;

	@Column(name = "NLH_ChucDanh", length = 100)
	private String chucDanh;

	@Column(name = "NLH_DiaChi", length = 200)
	private String diaChi_NLH;

	@Column(name = "NLH_SoCmnd", length = 100)
	private String soCMND;

	@Column(name = "NLH_NgayCapCmnd", length = 100)
	private Date ngayCapCMND;

	@Column(name = "NLH_NoiCapCmnd", length = 100)
	private String noiCapCMND;

	@Column(name = "NLH_Email", length = 100)
	private String email_NLH;

	@Column(name = "DienThoaiNha", length = 100)
	private String dienThoaiNha;

	@Column(name = "DienThoaiDiDong", length = 100)
	private String dienThoaiDiDong;

	public DoiTac() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getMaDoiTac() {
		return maDoiTac;
	}

	public void setMaDoiTac(String maDoiTac) {
		this.maDoiTac = maDoiTac;
	}

	public String getTenDoiTac() {
		return tenDoiTac;
	}

	public void setTenDoiTac(String tenDoiTac) {
		this.tenDoiTac = tenDoiTac;
	}

	public String getNhomDoiTac() {
		return nhomDoiTac;
	}

	public void setNhomDoiTac(String nhomDoiTac) {
		this.nhomDoiTac = nhomDoiTac;
	}

	public String getDiaChi() {
		return diaChi;
	}

	public void setDiaChi(String diaChi) {
		this.diaChi = diaChi;
	}

	public String getMaSoThue() {
		return maSoThue;
	}

	public void setMaSoThue(String maSoThue) {
		this.maSoThue = maSoThue;
	}

	public String getMaNganSach() {
		return maNganSach;
	}

	public void setMaNganSach(String maNganSach) {
		this.maNganSach = maNganSach;
	}

	public String getDienThoai() {
		return dienThoai;
	}

	public void setDienThoai(String dienThoai) {
		this.dienThoai = dienThoai;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getDienGiai() {
		return dienGiai;
	}

	public void setDienGiai(String dienGiai) {
		this.dienGiai = dienGiai;
	}

	public Double getSoNoToiDa() {
		return soNoToiDa;
	}

	public void setSoNoToiDa(Double soNoToiDa) {
		this.soNoToiDa = soNoToiDa;
	}

	public Double getHanNo() {
		return hanNo;
	}

	public void setHanNo(Double hanNo) {
		this.hanNo = hanNo;
	}

	public TuCachPhapNhan getTuCachPhapNhan() {
		return tuCachPhapNhan;
	}

	public void setTuCachPhapNhan(TuCachPhapNhan tuCachPhapNhan) {
		this.tuCachPhapNhan = tuCachPhapNhan;
	}

	public LoaiDoiTac getLoaiDoiTac() {
		return loaiDoiTac;
	}

	public void setLoaiDoiTac(LoaiDoiTac loaiDoiTac) {
		this.loaiDoiTac = loaiDoiTac;
	}

	public String getHoTen() {
		return hoTen;
	}

	public void setHoTen(String hoTen) {
		this.hoTen = hoTen;
	}

	public GioiTinh getGioiTinh() {
		return gioiTinh;
	}

	public void setGioiTinh(GioiTinh gioiTinh) {
		this.gioiTinh = gioiTinh;
	}

	public String getChucDanh() {
		return chucDanh;
	}

	public void setChucDanh(String chucDanh) {
		this.chucDanh = chucDanh;
	}

	public String getDiaChi_NLH() {
		return diaChi_NLH;
	}

	public void setDiaChi_NLH(String diaChi_NLH) {
		this.diaChi_NLH = diaChi_NLH;
	}

	public String getSoCMND() {
		return soCMND;
	}

	public void setSoCMND(String soCMND) {
		this.soCMND = soCMND;
	}

	public Date getNgayCapCMND() {
		return ngayCapCMND;
	}

	public void setNgayCapCMND(Date ngayCapCMND) {
		this.ngayCapCMND = ngayCapCMND;
	}

	public String getNoiCapCMND() {
		return noiCapCMND;
	}

	public void setNoiCapCMND(String noiCapCMND) {
		this.noiCapCMND = noiCapCMND;
	}

	public String getEmail_NLH() {
		return email_NLH;
	}

	public void setEmail_NLH(String email_NLH) {
		this.email_NLH = email_NLH;
	}

	public String getDienThoaiNha() {
		return dienThoaiNha;
	}

	public void setDienThoaiNha(String dienThoaiNha) {
		this.dienThoaiNha = dienThoaiNha;
	}

	public String getDienThoaiDiDong() {
		return dienThoaiDiDong;
	}

	public void setDienThoaiDiDong(String dienThoaiDiDong) {
		this.dienThoaiDiDong = dienThoaiDiDong;
	}

	public void fillDoiTac(DoiTac doiTac) {

		this.maDoiTac = doiTac.maDoiTac;
		this.tenDoiTac = doiTac.tenDoiTac;
		this.nhomDoiTac = doiTac.nhomDoiTac;
		this.loaiDoiTac = doiTac.loaiDoiTac;
		this.diaChi = doiTac.diaChi;
		this.maSoThue = doiTac.maSoThue;
		this.maNganSach = doiTac.maNganSach;
		this.dienThoai = doiTac.dienThoai;
		this.fax = doiTac.fax;
		this.email = doiTac.email;
		this.website = doiTac.website;
		this.dienGiai = doiTac.dienGiai;
		this.soNoToiDa = doiTac.soNoToiDa;
		this.hanNo = doiTac.hanNo;
		this.tuCachPhapNhan = doiTac.tuCachPhapNhan;
		this.hoTen = doiTac.hoTen;
		this.gioiTinh = doiTac.gioiTinh;
		this.chucDanh = doiTac.chucDanh;
		this.diaChi_NLH = doiTac.diaChi_NLH;
		this.soCMND = doiTac.soCMND;
		this.ngayCapCMND = doiTac.ngayCapCMND;
		this.noiCapCMND = doiTac.noiCapCMND;
		this.email_NLH = doiTac.email_NLH;
		this.dienThoaiNha = doiTac.dienThoaiNha;
		this.dienThoaiDiDong = doiTac.dienThoaiDiDong;
	}

}
